package holdobject;

import java.util.*;

public class AddingGroups {
    public static void main(String[] args) {
        Collection<Integer> collection=new ArrayList<Integer>(Arrays.asList(1,2,3,45,6));
        Integer[] moreInts={
                7,8,9,10
        };
        ((ArrayList<Integer>) collection).addAll(Arrays.asList(moreInts));

        //
        //
        Collections.addAll(collection,11,12,3234);
        Collections.addAll(collection,moreInts);
        //
        List<Integer> list=Arrays.asList(16,17,18,19);
        list.set(1,99);

    }
}
